import Vue from 'vue'
import Vuex from 'vuex'
import home from './home'
import search from './search'
import detail from './detail'
Vue.use(Vuex)
const state={}
const mutations={}
const actions={}
const getters={}
const store=new Vuex.Store({
    state,
    mutations,
    actions,
    getters,
    //模块化 合并
    modules:{
        home,
        search,
        detail
    }
})
export default store

